﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedBackReport.aspx.cs" Inherits="FeedBackReport" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>陈列反馈报告</title>
    <script src="../js/extTools.js" type="text/javascript"></script>
    <link href="../css/ExtStyle.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery/jquery-3.2.1.min.js" type="text/javascript"></script>
    
    <style type="text/css">
        /*.no_finish  {
            font-size: 10px;
            font-weight: 600;
            text-shadow: none;
            padding: 3px 8px;
            background-color: #ed5565;
            color: #FFF;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
        }

        .no_finish_1, .yes_finish_0 {
            display: none;
        }

        .custom_hide_1 {
            display: none;
        }

        .yes_finish {
            font-size: 10px;
            font-weight: 600;
            text-shadow: none;
            padding: 3px 8px;
            background-color: #1ab394;
            color: #FFF;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
        }*/

        .img_null_0 {
            display:none;
        }
    </style>
    <script runat="server">

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Neptune" />
            <ext:Viewport ID="Viewport1" runat="server">
                <LayoutConfig>
                    <ext:HBoxLayoutConfig Align="Stretch" />
                </LayoutConfig>
                <Defaults>
                    <ext:Parameter Name="margin" Value="2 0" Mode="Value" />
                </Defaults>
                <Items>
                    <ext:TabPanel ID="TabPanel1" runat="server" Flex="1">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server" Layout="ColumnLayout">
                                <Items>

                                    <ext:ComboBox runat="server" ID="txtOperatorAreaName" DisplayField="OperatorAreaName" QueryMode="Local" TypeAhead="true" ValueField="OperatorAreaName" Width="180" FieldLabel="分部" LabelWidth="35">
                                        <Store>
                                            <ext:Store ID="Store_OperatorAreaName" runat="server" AutoDataBind="true">
                                                <Model>
                                                    <ext:Model ID="Model3" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="OperatorAreaName" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                        <DirectEvents>
                                            <Change OnEvent="GetBigAreaName" />
                                        </DirectEvents>
                                    </ext:ComboBox>

                                    <ext:ComboBox runat="server" ID="txtBigAreaName" DisplayField="BigAreaName" QueryMode="Local" TypeAhead="true" ValueField="BigAreaName" Width="130" FieldLabel="省份" LabelWidth="30">
                                        <Store>
                                            <ext:Store ID="Store_BigAreaName" runat="server" AutoDataBind="true">
                                                <Model>
                                                    <ext:Model ID="Model6" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="BigAreaName" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                        <DirectEvents>
                                            <Change OnEvent="GetArea" />
                                        </DirectEvents>
                                    </ext:ComboBox>
                                    <ext:ComboBox runat="server" ID="txtAreaName" DisplayField="AreaName" QueryMode="Local" TypeAhead="true" ValueField="AreaName" Width="130" FieldLabel="城市" LabelWidth="30">
                                        <Store>
                                            <ext:Store ID="Store_AreaName" runat="server" AutoDataBind="true">
                                                <Model>
                                                    <ext:Model ID="Model7" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="AreaName" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                    </ext:ComboBox>
                                    <ext:ComboBox runat="server" ID="txtDisplay" DisplayField="Display" QueryMode="Local" TypeAhead="true" ValueField="Display" Width="150" FieldLabel="陈列师" LabelWidth="50">
                                        <Store>
                                            <ext:Store ID="Store_Display" runat="server" AutoDataBind="true">
                                                <Model>
                                                    <ext:Model ID="Model8" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="Display" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                    </ext:ComboBox>

                                    <ext:ComboBox runat="server" ID="txtShopManager" DisplayField="ShopManager" QueryMode="Local" TypeAhead="true" ValueField="ShopManager" Width="150" FieldLabel="店经理" LabelWidth="50">
                                        <Store>
                                            <ext:Store ID="Store_ShopManager" runat="server" AutoDataBind="true">
                                                <Model>
                                                    <ext:Model ID="Model2" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="ShopManager" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                    </ext:ComboBox>

                                    <ext:DateField runat="server" ID="txtTimeBegin" LabelWidth="60" Editable="false" FieldLabel="检核周期" Width="180">
                                         <DirectEvents>
                                            <Change OnEvent="StartDateField" />
                                        </DirectEvents>
                                    </ext:DateField>
                                    <ext:DateField runat="server" ID="txtTimeEnd" LabelWidth="20" Editable="false" FieldLabel="至" Width="180" />

                                    <ext:Button ID="Button1" runat="server" Text="查询" Width="70" OnDirectClick="BtnQureyUser" UI="Info" Icon="Find">
                                        <DirectEvents>
                                            <Click Timeout="900000">
                                                <EventMask ShowMask="true" Msg="加载中..."></EventMask>
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                    <ext:Button ID="Button9" runat="server" Text="导出Excel" OnDirectClick="BtnOutExcel" Visible="true"
                                        UI="Info" Icon="PageExcel">
                                        <DirectEvents>
                                            <Click Timeout="900000">
                                                <EventMask ShowMask="true" Msg="玩命下载中...">
                                                </EventMask>
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                    <%--<ext:Button ID="Button2" runat="server" Text="导出" Width="70" UI="Info" OnDirectClick="BtnExport">
                                        <DirectEvents>
                                            <Click>
                                                <EventMask ShowMask="true" Msg="加载中..."></EventMask>
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>--%>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>

                        <Items>
                            <ext:GridPanel ID="GridPanel1" runat="server" Title="陈列反馈报告" TitleAlign="Right" Height="500">
                                <Store>
                                    <ext:Store ID="Store1" runat="server" PageSize="50" OnReadData="RefreshDataSet">
                                        <Model>
                                            <ext:Model ID="Model1" runat="server" IDProperty="陈列反馈报告">
                                                <Fields>
                                                    <ext:ModelField Name="CurrentUser" />
                                                    <ext:ModelField Name="CheckCycle" />
                                                    <ext:ModelField Name="OperatorAreaName" />
                                                    <ext:ModelField Name="ProvinceName" />
                                                    <ext:ModelField Name="AreaName" />
                                                    <ext:ModelField Name="ShopName" />
                                                    <ext:ModelField Name="ShopCode" />
                                                    <ext:ModelField Name="Display" />
                                                    <ext:ModelField Name="ShopManager" />
                                                    <ext:ModelField Name="TaskName" />
                                                    <ext:ModelField Name="FeedBackDescribe" />
                                                    <ext:ModelField Name="Url1"/>
                                                    <ext:ModelField Name="Url2"/>
                                                    <ext:ModelField Name="Url3"/>
                                                    <ext:ModelField Name="Url4"/>
                                                    <ext:ModelField Name="Url5"/>
                                                    <ext:ModelField Name="Url6"/>
                                                    <ext:ModelField Name="Url7"/>
                                                    <ext:ModelField Name="Url8"/>
                                                    <ext:ModelField Name="Url9"/>
                                                </Fields>
                                            </ext:Model>
                                        </Model>
                                    </ext:Store>
                                </Store>
                                <ColumnModel>
                                    <Columns>
                                        <ext:RowNumbererColumn ID="RowNumbererColumn1" runat="server" />
                                        <ext:Column ID="Column2" runat="server" Text="检核人" DataIndex="CurrentUser" Width="60" />
                                        <ext:Column ID="Column3" runat="server" Text="检核周期" DataIndex="CheckCycle" Width="130" />
                                        <ext:Column ID="Column4" runat="server" Text="分部" DataIndex="OperatorAreaName" Width="80" />
                                        <ext:Column ID="Column5" runat="server" Text="省份" DataIndex="ProvinceName" Width="65" />
                                        <ext:Column ID="Column6" runat="server" Text="城市" DataIndex="AreaName" Width="65" />
                                        <ext:Column ID="Column7" runat="server" Text="店铺名称" DataIndex="ShopName" Width="100" />
                                        <ext:Column ID="Column8" runat="server" Text="店铺代码" DataIndex="ShopCode" Width="60" />
                                        <ext:Column ID="Column9" runat="server" Text="陈列师" DataIndex="Display" Width="60" />
                                        <ext:Column ID="Column10" runat="server" Text="店经理" DataIndex="ShopManager" Width="60" />
                                        <ext:Column ID="Column11" runat="server" Text="问题区域" DataIndex="TaskName" Width="100" />
                                        <ext:Column ID="Column12" runat="server" Text="问题及跟踪事项" DataIndex="FeedBackDescribe" Width="250" />
                                        <ext:TemplateColumn ID="TemplateColumn1" runat="server" Text="图片" DataIndex="Url" Width="650">
                                            <Tpl runat="server">
                                                <Html>
                                                    <div class="carousel-inner">
                                                        <img class="img_null_{Url1}" src="{Url1}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url2}" src="{Url2}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url3}" src="{Url3}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url4}" src="{Url4}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url5}" src="{Url5}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url6}" src="{Url6}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url7}" src="{Url7}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url8}" src="{Url8}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                        <img class="img_null_{Url9}" src="{Url9}" alt="{ShopName}" style="width:70px; height:70px !important;"  />
                                                    </div>
                                                </Html>
                                            </Tpl>
                                            <Listeners>
                                                
                                            </Listeners>
                                        </ext:TemplateColumn>
                                    </Columns>
                                </ColumnModel>
                                <BottomBar>
                                    <ext:PagingToolbar ID="PagingToolbar1" runat="server">
                                        <Items>
                                            <ext:Label ID="Label1" runat="server" Text="每页显示:" />
                                            <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
                                            <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                                <Items>
                                                    <ext:ListItem Text="10" />
                                                    <ext:ListItem Text="20" />
                                                    <ext:ListItem Text="50" />
                                                    <ext:ListItem Text="100" />
                                                </Items>
                                                <SelectedItems>
                                                    <ext:ListItem Value="50" />
                                                </SelectedItems>
                                                <Listeners>
                                                    <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.reload();" />
                                                </Listeners>
                                            </ext:ComboBox>

                                        </Items>
                                        <Plugins>
                                            <ext:ProgressBarPager ID="ProgressBarPager1" runat="server" />
                                        </Plugins>
                                    </ext:PagingToolbar>
                                </BottomBar>
                            </ext:GridPanel>
                        </Items>
                    </ext:TabPanel>
                </Items>
            </ext:Viewport>
        </div>
    </form>
</body>
</html>


